# Generated automatically from Makefile.in by configure.
prefix=@prefix@
CFLAGS = @CFLAGS@
PROG = sfont
OBJS = main.o sfont.o filter.o encode-gb.o encode-gbk.o \
       encode-big5.o encode-jis.o encode-kscm.o
FONT_PATH=../../fonts
CC=gcc -g $(CFLAGS) -I. -I../../include 

all: $(PROG)

$(PROG): $(OBJS)
	$(CC) $(OBJS) -o $(PROG)
main.o: main.cpp
	$(CC) -c main.cpp -o main.o
filter.o: filter.cpp filter.hpp
	$(CC) -c filter.cpp -o filter.o
sfont.o: sfont.cpp sfont.hpp
	$(CC) -c sfont.cpp -o sfont.o
encode-gb.o : $(FONT_PATH)/gb/encode-gb.c $(FONT_PATH)/gb/font_gb16.h
	$(CC) -c -I$(FONT_PATH)/gb $(FONT_PATH)/gb/encode-gb.c -o encode-gb.o
encode-gbk.o : $(FONT_PATH)/gbk/encode-gbk.c $(FONT_PATH)/gbk/font_gbk16.h
	$(CC) -c -I$(FONT_PATH)/gbk $(FONT_PATH)/gbk/encode-gbk.c -o encode-gbk.o
encode-big5.o : $(FONT_PATH)/big5/encode-big5.c $(FONT_PATH)/big5/font_big5_16.h
	$(CC) -c -I$(FONT_PATH)/big5 $(FONT_PATH)/big5/encode-big5.c -o encode-big5.o
encode-jis.o : $(FONT_PATH)/jis/encode-jis.c $(FONT_PATH)/jis/font_jis16.h
	$(CC) -c -I$(FONT_PATH)/jis $(FONT_PATH)/jis/encode-jis.c -o encode-jis.o
encode-kscm.o : $(FONT_PATH)/kscm/encode-kscm.c $(FONT_PATH)/kscm/font_kscm16.h
	$(CC) -c -I$(FONT_PATH)/kscm $(FONT_PATH)/kscm/encode-kscm.c -o encode-kscm.o

clean:
	rm -f a.out *.bak *.o core *~ $(PROG)

distclean: clean
	rm -f Makefile
